package cn.cdeden.knowledge.mapper;

import cn.cdeden.common.mybatis.core.mapper.BaseMapperPlus;
import cn.cdeden.knowledge.domain.FileTemplateTree;
import cn.cdeden.knowledge.domain.Template;
import cn.cdeden.knowledge.domain.dto.EnterpriseTemplateTreeQueryParam;
import cn.cdeden.knowledge.domain.dto.TemplateTreeQueryParam;
import com.baomidou.mybatisplus.core.conditions.Wrapper;
import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.baomidou.mybatisplus.core.metadata.IPage;
import org.apache.ibatis.annotations.Mapper;
import org.apache.ibatis.annotations.Param;

@Mapper
public interface FileTemplateTreeMapper extends BaseMapperPlus<FileTemplateTree,FileTemplateTree> {

    IPage<Template> queryTemplate(@Param("page") IPage<FileTemplateTree> page, @Param("ew") Wrapper<EnterpriseTemplateTreeQueryParam> wrapper, @Param("userId")Long userId);

    IPage<Template> queryCollectionTemplate(@Param("page") IPage<Template> page, @Param("type") String type , @Param("realName") String realName,@Param("userId")Long userId);

}
